package com.house365.updown.upload;

import org.apache.http.client.methods.HttpPost;

/**
 *@author py
 *@date 2013-7-19
 *@comment
 */
public class UploaderInfo {
	public static final int UPLOAD_STATUS_INPROCESS = 2;
	public static final int UPLOAD_STATUS_CANCEL = 3;
	public static final int UPLOAD_STATUS_COMPLETED = 0;
	public static final int UPLOAD_STATUS_ERROR = 1;
	public UploaderInfo() {
		super();
		this.id = System.currentTimeMillis();
	}

	private long id;
	private long maxSize=0;
	private long nowSize = 0;

	private boolean isDownloading = true;

	private HttpPost httpPost;
	private int status;
	private String httpReponse;
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}




	public boolean isDownloading() {
		return isDownloading;
	}

	public void setDownloading(boolean isDownloading) {
		this.isDownloading = isDownloading;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}



	public HttpPost getHttpPost() {
		return httpPost;
	}

	public void setHttpPost(HttpPost httpPost) {
		this.httpPost = httpPost;
	}

	public long getMaxSize() {
		return maxSize;
	}

	public void setMaxSize(long maxSize) {
		this.maxSize = maxSize;
	}

	public long getNowSize() {
		return nowSize;
	}

	public void setNowSize(long nowSize) {
		this.nowSize = nowSize;
	}

	public String getHttpReponse() {
		return httpReponse;
	}

	public void setHttpReponse(String httpReponse) {
		this.httpReponse = httpReponse;
	}
	
	
	
}
